package behavior.template_method;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lzp
 * @Date:2023/3/8
 * @description: 本地配置，实现本地缓存
 */
public class LocalSetting extends AbstractSetting {

	private Map<String, String> cache = new HashMap<>();


	@Override
	protected String lookupCache(String key) {
		return cache.get(key);
	}

	@Override
	protected void putIntoCache(String key, String value) {
		cache.put(key, value);
	}
}
